package org.example

import java.util.UUID

class Player(
    val id: UUID,
    val name: String,
) {
    fun kick() {
        println("user: $name kick!")
    }

    companion object {
        fun randomPlayer(name: String): Player? {
            return if (name.length < 5) {
                Player(UUID.randomUUID(), name)
            } else {
                null
            }
        }
    }
}
